﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HJ_SQL_ToTable
{
    class DocumentWriterFactory
    {
        public IWriteDocument CreateWriter(string writertype)
        {
            IWriteDocument anoWriter = null;
            switch (writertype.ToLower())
            {
                case "report":
                    anoWriter = new ReportSQLWriter();
                    break;
                default:
                    anoWriter = new ReportSQLWriter();
                    break;
            }

            return anoWriter;
        }
    }
}
